package com.datn.utils.places;

import java.util.ArrayList;

import com.google.android.maps.GeoPoint;

public class DirectionObject {
	
	private ArrayList<String> textdistance;
	private ArrayList<String> duration;
	private ArrayList<String> instructions;
	private ArrayList<GeoPoint> startlocation;
	private ArrayList<GeoPoint> endlocation;
	private ArrayList<GeoPoint> polyline;
	
	public DirectionObject(){
		textdistance=new ArrayList<String>();
		duration=new ArrayList<String>();
		instructions=new ArrayList<String>();
		startlocation=new ArrayList<GeoPoint>();
		endlocation=new ArrayList<GeoPoint>();
		polyline=new ArrayList<GeoPoint>();
	}
	
	
	public ArrayList<GeoPoint> getPolyline() {
		return polyline;
	}


	public void setPolyline(ArrayList<GeoPoint> polyline) {
		this.polyline = polyline;
	}


	public void addElementToStartLocation(double stLat, double stLng){
		startlocation.add(new GeoPoint((int)(stLat*1E6), (int)(stLng*1E6)));
	}
	
	public void addElementToEndLocation(double stLat, double stLng){
		endlocation.add(new GeoPoint((int)(stLat*1E6), (int)(stLng*1E6)));
	}	
	

	public void addElementToTextDistance(String stText){
		textdistance.add(stText);
	}
	
	public void addElementToDuration(String stText){
		duration.add(stText);
	}
	
	public void addElementToInstructions(String stText){
		instructions.add(stText);
	}
	
	
	public ArrayList<String> getInstructions() {
		return instructions;
	}





	public void setInstructions(ArrayList<String> instructions) {
		this.instructions = instructions;
	}





	public ArrayList<String> getTextdistance() {
		return textdistance;
	}
	
	public void setTextdistance(ArrayList<String> textdistance) {
		this.textdistance = textdistance;
	}
	
	public ArrayList<String> getDuration() {
		return duration;
	}


	public void setDuration(ArrayList<String> duration) {
		this.duration = duration;
	}
	
	public ArrayList<GeoPoint> getStartlocation() {
		return startlocation;
	}

	
	public void setStartlocation(ArrayList<GeoPoint> startlocation) {
		this.startlocation = startlocation;
	}
	
	public ArrayList<GeoPoint> getEndlocation() {
		return endlocation;
	}

	public void setEndlocation(ArrayList<GeoPoint> endlocation) {
		this.endlocation = endlocation;
	}
}
